<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org" lang="en">

<head th:replace="fragments/headTag :: headTag">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>Spreadsheet Template Builder App</title>

<!-- Bootstrap -->
<link
	href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.css"
	th:href="@{/webjars/bootstrap/3.0.3/css/bootstrap.css}"
	rel="stylesheet" />
<link href="../../../resources/css/navbar.css"
	th:href="@{/resources/css/navbar.css}" rel="stylesheet" />
<!-- JQuery -->
<script
	src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"
	th:src="@{/webjars/jquery/1.9.0/jquery.min.js}"></script>
<script
	src="http://netdna.bootstrapcdn.com/twitter-bootstrap/3.0.3/js/bootstrap.min.js"
	th:src="@{/webjars/bootstrap/3.0.3/js/bootstrap.min.js}"></script>

<!-- Spring JS and Ajax -->
<script type="text/javascript" th:src="@{/resources/dojo/dojo.js}"></script>
<script type="text/javascript" th:src="@{/resources/spring/Spring.js}"></script>
<script type="text/javascript"
	th:src="@{/resources/spring/Spring-Dojo.js}"></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
</head>
<body>
	<div class="container">
		<div th:include="fragments/bodyHeader :: bodyHeader" th:remove="tag">This
			is the navigation bar here</div>
		<ol class="breadcrumb">
			<li class="active" th:text="#{breadcrumbs.template}">Template
				Selection</li>
			<li th:text="#{breadcrumbs.metadata}">Metadata Schema
				Configuration</li>
			<li th:text="#{breadcrumbs.metadataElements}">Metadata Elements
				Selection</li>
			<li th:text="#{breadcrumbs.review}">Review and Generate</li>
		</ol>
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 th:text="#{metadata.title}" class="panel-title">Select
				Metadata Schema</h3>
			</div>
			<div class="panel-body">
				<p th:text="#{metadata.text1}">Two different spreadsheets templates can be created from this
					application:</p>
				<ul>
					<li th:text="#{metadata.text2}">Collections/Sub-collections level spreadsheet. This type
						of spreadsheet describes Collection/Sub-collection containers used
						to manage a set of QuDEx files associated it. A sub-collection
						presents the same metadata annotations as a Collection but differs
						in that it does not include the QuDEx-XML special data record.</li>
					<li th:utext="#{metadata.text3}">Files level spreadsheet. This type of spreadsheet
						describes QuDEx file instances associated with a particular <b>QuDEx
							Repository</b> Collection.
					</li>
				</ul>
				<p th:text="#{metadata.text4}">The elements used in both types of spreadsheets come from
					multiple standard Metadata schemas.</p>
				<form id="spreadsheetSelection" class="form-horizontal"
					th:object="${mdFlow}" th:action="${flowExecutionUrl}"
					method="post">
					<fieldset>
						<div class="form-group">
							<label class="col-md-4 control-label" for="mdselect"><span
								th:text="#{form.metadata.typeSpreadsheet}">Type of
									Spreadsheet</span></label>
							<div class="col-md-4">
								<div class="input-group">
									<select th:field="*{typeSS}" class="form-control">
										<option selected="selected" value="0" th:text="#{form.metadata.select.option1}">Collection/sub-collection
											spreadsheet</option>
										<option value="1" th:text="#{form.metadata.select.option2}">Files (documents)
											spreadsheet</option>
									</select>
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-md-4 control-label" for="fileupload"></label>
							<div class="col-md-4">
								<input class="btn btn-primary" type="submit" id="load"
									name="_eventId_selectSchema"
									th:attr="data-content=#{form.metadata.tooltip.submit}"
									data-toggle="popover"
									th:value="#{form.metadata.submit}" />
							</div>
						</div>
					</fieldset>
				</form>
			</div>
		</div>
		<div id="footer" th:include="fragments/footer :: footer"></div>
	</div>
	<script>
		$(document).ready(function() {
			/*Tooltips*/
			$('[data-toggle="tooltip"]').tooltip({
    			'placement': 'top'
			});
			
			$('[data-toggle="popover"]').popover({
			    trigger: 'hover',
			        'placement': 'top'
			});
		});
	</script>
</body>
</html>